home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / gnused.zip / GNUSED / MAKEFILE.IN < prev    next >
Text File  |  1991-08-07  |  2KB  |  84 lines

  1. # Makefile for GNU SED, a batch editor.
  2. # Copyright (C) 1987-1991 Free Software Foundation, Inc.
  3. # This file is part of GNU SED.
  4. # GNU SED is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. # GNU SED is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with GNU SED; see the file COPYING.  If not, write to
  14. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  15.  
  16. SHELL = /bin/sh
  17.  
  18. #### Start of system configuration section. ####
  19.  
  20. srcdir = @srcdir@
  21. @VPATH@
  22.  
  23. CC = @CC@
  24. INSTALL = @INSTALL@
  25.  
  26. # Things you might add to DEFS:
  27. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  28. # -DUSG            If you have System V/ANSI C string
  29. #            and memory functions and headers.
  30. # -DCHAR_UNSIGNED    If type `char' is unsigned.
  31. # -DNO_VFPRINTF        If you lack vprintf function (but have _doprnt).
  32.  
  33. DEFS = @DEFS@
  34. LIBS = @LIBS@
  35.  
  36. CFLAGS = -g -I$(srcdir) $(DEFS)
  37. LDFLAGS = -g
  38.  
  39. prefix = /usr/local
  40.  
  41. # Where to install the executable.
  42. bindir = $(prefix)/gnubin
  43.  
  44. #### End of system configuration section. ####
  45.  
  46. OBJS = sed.o utils.o regex.o getopt.o getopt1.o
  47. SRCS = sed.c utils.c regex.c getopt.c getopt1.c
  48. DISTFILES = COPYING ChangeLog README Makefile.in configure \
  49. regex.h getopt.h $(SRCS)
  50.  
  51. all:    sed
  52.  
  53. sed:    $(OBJS)
  54.     $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
  55.  
  56. sed.o regex.o: regex.h
  57. sed.o getopt1.o: getopt.h
  58.  
  59. install:    all
  60.     $(INSTALL) sed $(bindir)
  61.  
  62. TAGS:    $(SRCS)
  63.     etags $(SRCS)
  64.  
  65. clean:
  66.     rm -f sed $(OBJS) core
  67.  
  68. distclean: clean
  69.     rm -f TAGS Makefile config.status
  70.  
  71. realclean: distclean
  72.  
  73. dist:    $(DISTFILES)
  74.     echo sed-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q sed.c` > .fname
  75.     rm -rf `cat .fname`
  76.     mkdir `cat .fname`
  77.     ln $(DISTFILES) `cat .fname`
  78.     tar chZf `cat .fname`.tar.Z `cat .fname`
  79.     rm -rf `cat .fname` .fname
  80.